Defines the graphics surface of a PDF page.

Full documentation

Full documentation

Full documentation

Full documentation

Full documentation

This method supports the internal library infrastructure and should not be used by external client code.

Full documentation

Begins an artifact marked content sequence.
Each beginArtifactMarkedContent call must be paired with a call.

Full documentation

Begins marked content sequence.
Each beginMarkedContent call must be paired with a call.

Full documentation

Begins an optional content group in the page graphics.

Full documentation

Begins a marked content sequence associated with a object.
Each beginStructureElement call must be paired with a call.

Full documentation

Clears all graphic content from the page.

Full documentation

This method supports the internal library infrastructure and should not be used by external client code.

Full documentation

Compresses the page graphic content.
Call this method to compress the graphic content and reduce memory usage. This method compresses the current graphic content but it leaves the graphics open so new content can be still added. If you are creating pages with heavy vector graphics, such as maps, you can call this method multiple times, after fragments of the page have been drawn in order to reduce the in-memory size of the graphic content. What the page content has been fully created call the method to compress the last fragment and close the page content.

Full documentation

Compresses the graphic content and closes the graphics surface.
Call this method to compress the graphic content and reduce memory usage. If this method is not called, the graphic content is stored uncompressed in the PDF file. After calling this method no more drawing is allowed on the graphics.

Full documentation

Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height.

Full documentation

Draws a barcode at the specified position.

Full documentation

Draws a Bézier spline specified by four Objects.

Full documentation

Draws a chord representing a region bounded by the intersection of an ellipse and a line segment, called a secant, specified by a pair of coordinates, a width and a height.

Full documentation

Draws a cloud shape specified by an array of points.

Full documentation

This method supports the internal library infrastructure and should not be used by external client code.

Full documentation

Draws an ellipse defined by a bounding rectangle specified by coordinates for the upper-left corner of the rectangle, a height, and a width.

Full documentation

Draws the formatted content on the graphics surface at the specified position.

Full documentation

Draws the specified at the specified location and with the specified size.

Full documentation

Draws the specified at the specified location and with the specified size.
If width is zero or negative then width is automatically computed in order to keep the original aspect ratio. If height is zero or negative then height is automatically computed in order to keep the original aspect ratio. If both width and height are negative then the image is scaled automatically to fit the given area and the original aspect ratio is kept.

Full documentation

Draws a line connecting the two points specified by the coordinate pairs.

Full documentation

Draws a .

Full documentation

Draws a pie shape defined by an ellipse specified by a coordinate pair, a width, a height, and two radial lines.

Full documentation

Draws a rectangle specified by a coordinate pair, a width, and a height.

Full documentation

Draws a rounded rectangle specified by a coordinate pair, a width, and a height.

Full documentation

Draws a PDF shading.
The position of the shading is defined on the object.

Full documentation

Draws the specified at the specified location and with the specified size.
A stencil mask is a B/W image where the 1 pixels are left transparent and 0 pixels are filled with the brush.
If width is zero or negative then width is automatically computed in order to keep the original aspect ratio. If height is zero or negative then height is automatically computed in order to keep the original aspect ratio. If both width and height are negative then the stencil mask is scaled automatically to fit the given area and the original aspect ratio is kept.

Full documentation

Draws the specified text string at the specified location with the specified and @see com.o2sol.pdf4java.graphics.PDFFont Objects.

Full documentation

Ends a marked content sequence.

Full documentation

Ends the active optional content group in the page graphics.

Full documentation

Ends a marked content sequence associated with a com.o2sol.pdf4java.logicalstructure.PDFStructureElement object.

Full documentation

This method supports the internal library infrastructure and should not be used by external client code.

Full documentation

This method supports the internal library infrastructure and should not be used by external client code.

Full documentation

This method supports the internal library infrastructure and should not be used by external client code.

Full documentation

This method supports the internal library infrastructure and should not be used by external client code.

Full documentation

This method supports the internal library infrastructure and should not be used by external client code.

Full documentation

Multiplies the current transformation of this graphics and specified the matrix.

Full documentation

Restores the current graphics state of this canvas.

Full documentation

Applies the specified rotation to the transformation matrix of this canvas.

Full documentation

Saves the current graphics state of this canvas

Full documentation

Applies the specified scaling operation to the transformation matrix of this graphics by prepending it to the current transformation matrix.

Full documentation

This method supports the internal library infrastructure and should not be used by external client code.

Full documentation

Sets the clipping region of this graphics to the specified path.
The actual clipping path is the intersection of the previous clipping path with this new clipping path. It is recommended to save the graphics state (see method) before setting a clipping path and restore the graphics state (see method) after the clipping path is no longer needed.

Full documentation

Sets a new graphics state in this graphics Object.

Full documentation

This method supports the internal library infrastructure and should not be used by external client code.

Full documentation

Changes the origin of the coordinate system by prepending the specified translation to the transformation matrix of this canvas.

Full documentation